package Review;

public class Test10 {

	public static void main(String[] args) {
		System.out.println(numberOf1(0x7FFFFFFF));
	}
	public static int numberOf1(int num){
		int count =0;
		while(num!=0){
			count++;
			num=num&(num-1);
		}
		return count;
	}

}
